package com.yms.aop.service.impl;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
import sun.awt.SunHints;

/**
 * @version : 1.0
 * @author: yangmingsong
 * @date: 2022/8/10-08-10-14:36
 * @description: spring5-test
 */
@Component
@Aspect
public class UserProxy {

    @Before(value = "execution(* com.yms.aop.service.impl.UserServiceImpl.add(..))")
    public void before(){
        System.out.println("增强方法");
    }
}
